const express = require("express");
const userInfoController = require('../../app/controllers/userInfo.server.controller.js');

module.exports = (app) => {
    const userInfoRouter = express.Router();
    userInfoRouter.route("/").post(userInfoController.addUserInfo);
    userInfoRouter.route("/userId/:userId").get(userInfoController.getUserInfoByUserId);

    app.use('/userInfo', userInfoRouter);
}